<?php
namespace Pw\MainBundle\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class TalentRarityType extends AbstractType
{
	
	public function buildForm(FormBuilderInterface $builder, array $options) {
		$builder->add('name', 'text');
		$builder->add('color', 'text');
		$builder->add('description', 'textarea', array('required' => false));
	}
    public function getName() {
        return 'talentRarity';
    }
    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Pw\MainBundle\Entity\TalentRarity',
            'intention'       => 'talentrarity_item',
			'validation_groups' => array('add'),
        ));
    }
}
